home *** CD-ROM | disk | FTP | other *** search
-
- <%
- ' This file is provided as part of ASP Power Widgets Samples
- '
- ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT
- ' WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
- ' INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
- ' OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- ' PURPOSE.
-
- ' Copyright 1997-1998. All rights reserved.
- ' Dalun Software Inc. ASP Power Widgets
- ' http://www.dalun.com
- ' http://members.tripod.com/ActiveServerPage/
-
- 'You may have to change some parameters to run this asp file.
- 'In this demo fileupload.exe and fileupload.ini are put in the virtural
- 'directory of "/cgi-bin/".
-
- 'Please review fileupload.ini and update some parameters
- 'accordingly.
-
- 'Cookie "FileUpload/intel-mmx-166" is used to exclude illegle uploading.
-
- 'In this sample files will be uploaded to C:\ResearchDept\Andrew.
- 'You can generate a different path for different users
- 'in your own application.
-
- 'please email dalunj@hotmail.com to register for better service and support.
- 'We will invoice your company.
-
- 'This cookie name and value should be same as that in fileupload.ini.
- 'This cookie is used by fileupload.exe
- Response.Cookies("FileUpload") = "intel-mmx-166"
- Response.Cookies("FileUpload").Path = "/"
-
- 'Don't change this cookie name, just change the cookie value accordingly.
- 'This cookie is used by fileupload.exe
- Response.Cookies("FileUploadToWhere") = "c:\ResearchDept\Andrew\" 'Change it!!!
- Response.Cookies("FileUploadToWhere").Path = "/"
-
- 'Don't change this cookie name, but you can change the value or simply remove this cookie.
- 'This cookie is used by fileupload.exe
- 'If there is no disk quota limit imposted, just set it as "".
- Response.Cookies("UserDiskQuota") = "2000000" 'Change it!!!.
- Response.Cookies("UserDiskQuota").Path = "/"
-
- Response.Cookies("User") = "Andrew" 'Change this accordingly.
- Response.Cookies("User").Path = "/"
-
- 'Cookie path:
- 'Now the cookie path is "/" , if you get a "cookie missing" error, please
- 'Change the cookie path.
-
- %>
-
- <HTML><BODY>
- <center>
- <h1>File Upload</h1>
- Please select files to upload.<P>
-
- <!-- Change the path "/cgi-bin/" below, if needed -->
- <!-- Don't Change any other things -->
-
- <FORM ACTION ="/cgi-bin/fileUpload.exe" ENCTYPE ="multipart/form-data" METHOD ="post">
-
- <!--you can specify file names on server
- <FORM ACTION ="/cgi-bin/fileUpload.exe?ServerName1=abc.gif&ServerName2=abc.jpg" ENCTYPE ="multipart/form-data" METHOD ="post">
- --->
-
- <!-- You may add more or remove one of the input entries below -->
- <!-- But you CAN NOT change the input type "FILE" -->
- <!-- You CAN NOT use fnx, flx as any other form item name, where x is a number -->
-
- <INPUT TYPE="FILE" NAME="UploadFile1" SIZE=40><P>
- <INPUT TYPE="FILE" NAME="UploadFile2" SIZE=40><P>
-
- <INPUT TYPE="Hidden" NAME="Palm Top" SIZE=40 value="Cassiopeia's performance is good."><P>
-
- <!-- Above form item "Palm Top" is just used to show you how to pass some values to fileuploaded.asp -->
-
- <INPUT TYPE="SUBMIT" value="Upload">
- </FORM>
-
- </BODY></HTML>
-
-
-
-